{{^projectId}}
    <p class="lead">If you have a Project for this installation, specify it below.</p>
{{/projectId}}
{{#projectId}}
    <p class="lead text-success with-tick">
        Project has been assigned to this installation.</p>
    </p>
{{/projectId}}

<form id="attachProjectForm" onsubmit="Installer.Pages.projectForm.attachProject(this); return false">
    <div class="form-group">
        <label for="attachProjectId" class="control-label">Project ID</label>

        {{^projectId}}

            <div class="input-group">
                <input
                    name="project_id"
                    class="form-control input-lg project-id-input"
                    value=""
                    autocomplete="off"
                    id="attachProjectId" />
                <span class="input-group-btn">
                    <button class="btn btn-lg btn-success" type="submit">Check</button>
                </span>
            </div>

        {{/projectId}}
        {{#projectId}}

            <div class="input-group">
                <input
                    name="project_id"
                    class="form-control input-lg project-id-input"
                    disabled="disabled"
                    value="{{ projectId }}"
                    id="attachProjectId" />
                <span class="input-group-btn">
                    <button
                        class="btn btn-lg btn-danger"
                        type="submit"
                        onclick="Installer.Pages.projectForm.detachProject(this); return false">
                        Remove
                    </button>
                </span>
            </div>

        {{/projectId}}

    </div>
</form>

<!-- Failure alert -->
<div id="projectFormFailed" class="project-form-failed animated-content"></div>

{{^projectId}}

    <ul class="list-inline">
        <li><a href="http://octobercms.com/help/site/projects#project-id" target="_blank">How to find your Project ID</a></li>
    </ul>

{{/projectId}}
{{#projectId}}

    <table class="table table-bordered">
        <tr>
            <th class="col-md-2">Name</th>
            <td>{{ projectName }}</td>
        </tr>
        <tr>
            <th class="col-md-2">Owner</th>
            <td>{{ projectOwner }}</td>
        </tr>
        <tr>
            <th class="col-md-2">Description</th>
            <td>{{ projectDescription }}</td>
        </tr>
    </table>

    <ul class="list-inline">
        <li><a href="javascript:Installer.showSection('plugins')">View Plugins</a></li>
        <li><a href="javascript:Installer.showSection('themes')">View Themes</a></li>
    </ul>

{{/projectId}}